package com.yntx.usercenter.authentication.converter;

import com.yntx.usercenter.authentication.po.User;
import com.yntx.usercenter.authentication.vo.UserVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户转换
 *
 * @author jielihaofeng
 * @date 2023-04-24 11:54
 */
@Mapper
public interface UserConverter {

    UserConverter INSTANCE = Mappers.getMapper(UserConverter.class);

    /**
     * User -> UserVo
     *
     * @param user 用户
     * @return {@link UserVo}
     */
    UserVo user2UserVo(User user);

}
